package questionLibrary;

/**
 * This class is used for storing an information about organ.
 * @author Vladimir Vyshko
 * @author Anton Samarsky
 * @version 1.01
 */
public class OrganInfo {

	private int organParameters[][];
	
	/**
	 * This is default constructor. (captain oblivious)
	 */
	public OrganInfo(){  
		
		organParameters = new int[SomeConstants.COUNT_OF_ORGANS][SomeConstants.COUNT_OF_PARAMS];
		
	}
	
	/**
	 * This method is used for setting some parameter of organ.
	 * @param organ is id of organ.
	 * @param param is id of parameter of organ organ. 
	 * @param value is value of effect which you want to set.
	 */
	public void setParameter(int organ, int param, int value){
		
		organParameters[organ][param] = value;
		
	}
	
	/**
	 * This method is used for getting some parameter of organ.
	 * @param organ is id of organ.
	 * @param param is id of parameter of organ organ. 
	 * @return value of effect.
	 */
	public int getParameter(int organ, int param){
		
		return organParameters[organ][param];
		
	}
	
}
